package com.nf.bookstytem.service.bookmanage;

import java.util.List;

import com.nf.bookstytem.dao.bookmanage.BookManageDaoImpl;
import com.nf.bookstytem.model.bookmanage.BookModel;

public class BookManageService {
	private BookManageDaoImpl dao=new BookManageDaoImpl();
	
	public List<BookModel> getAll(){
		return dao.getAll();
	}
	
	public int deleteBookById(String id) {
		return dao.deleteBookById(id);
	}
	
	public int insertBook(BookModel book) {
		return dao.insertBook(book);
	}
	
	public int updateProduct(BookModel book) {
		return dao.updateProduct(book);
	}
	
	public List<BookModel> getLikeListByName(String biname){
		return dao.getLikeListByName(biname);
	}
	
	 public List<BookModel> PageList(int pageNo,int pageSize){
		 return dao.PageList(pageNo, pageSize);
	 }
	public int getPages() {
		return dao.getPages();
	}
	
}
